//-----------------------------------------------------------------------
// <copyright file="a_Surveys_CommentService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_Surveys_CommentService
    {
        #region a_Surveys_Comment

        public static void Createa_Surveys_Comment(a_Surveys_Comment a_Surveys_Comment)
        {            
            try
            {
                a_Surveys_CommentDAO a_Surveys_CommentDAO = new a_Surveys_CommentDAO();
                a_Surveys_CommentDAO.Createa_Surveys_Comment(a_Surveys_Comment);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_Surveys_Comment(a_Surveys_Comment a_Surveys_Comment)
        {            
            try
            {
                a_Surveys_CommentDAO a_Surveys_CommentDAO = new a_Surveys_CommentDAO();
                a_Surveys_CommentDAO.Updatea_Surveys_Comment(a_Surveys_Comment);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_Surveys_Comment(int id)
        {            
            try
            {
                a_Surveys_CommentDAO a_Surveys_CommentDAO = new a_Surveys_CommentDAO();
                a_Surveys_CommentDAO.Deletea_Surveys_Comment(id);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_Surveys_Comment Geta_Surveys_Comment(int id)
        {            
            try
            {
                a_Surveys_CommentDAO a_Surveys_CommentDAO = new a_Surveys_CommentDAO();
                return a_Surveys_CommentDAO.Geta_Surveys_Comment(id);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_Surveys_CommentCollection Geta_Surveys_CommentList(a_Surveys_CommentColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_Surveys_CommentDAO a_Surveys_CommentDAO = new a_Surveys_CommentDAO();
                return a_Surveys_CommentDAO.Geta_Surveys_CommentList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_Surveys_CommentCollection Geta_Surveys_CommentList(a_Surveys_CommentColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_Surveys_CommentDAO a_Surveys_CommentDAO = new a_Surveys_CommentDAO();
                return a_Surveys_CommentDAO.Geta_Surveys_CommentList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static a_Surveys_CommentCollection Geta_Surveys_CommentList_qid(int qid, a_Surveys_CommentColumns orderBy, OrderDirection orderDirection)
        {
            try
            {
                a_Surveys_CommentDAO a_Surveys_CommentDAO = new a_Surveys_CommentDAO();
                return a_Surveys_CommentDAO.Geta_Surveys_CommentList_qid(qid, orderBy, orderDirection);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static a_Surveys_CommentCollection Geta_Surveys_CommentList_qid(int qid, a_Surveys_CommentColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {
            try
            {
                a_Surveys_CommentDAO a_Surveys_CommentDAO = new a_Surveys_CommentDAO();
                return a_Surveys_CommentDAO.Geta_Surveys_CommentList_qid(qid, orderBy, orderDirection, page, pageSize, out totalRecords);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }      

        #endregion
    }
}